﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Menu.Master" AutoEventWireup="true" CodeBehind="EstiloForm.aspx.cs" Inherits="Emporium_Web.EstiloForm" Theme="Constellation" %>
<%@ MasterType VirtualPath="~/Menu.master" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<%@ Register TagPrefix="emporium" TagName="ClienteSearch" Src="~/Search/ClienteSearch.ascx" %>
<%@ Register TagPrefix="emporium" TagName="TemporadaSearch" Src="~/Search/TemporadaSearch.ascx" %>
<%@ Register TagPrefix="emporium" TagName="TipoPrendaSearch" Src="~/Search/TipoPrendaSearch.ascx" %>
<%@ Register TagPrefix="emporium" TagName="GrupoTallaSearch" Src="~/Search/GrupoTallaSearch.ascx" %>
<%@ Register TagPrefix="emporium" TagName="Calendario" Src="~/Controls/Calendario.ascx" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<title>Estilo</title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <article class="container_12">
	<section class="grid_12" id="cliente-block">
                         
			<div class="block-border">
			<form id="Form1" runat="server" class="block-content form">
                <ajaxToolkit:ToolkitScriptManager ID="toolk" runat="server"  EnableScriptGlobalization="true" EnableScriptLocalization="true"></ajaxToolkit:ToolkitScriptManager>

                <asp:UpdatePanel ID="upnEstilo" runat="server">
                <ContentTemplate>    
                <div>
				<h1>Estilo</h1>
				
                <fieldset>
                    <legend>
                        <asp:Label runat="server" ID="leyendaForm"></asp:Label></legend>
                    <ul class="message error no-margin" runat="server" id="errorMessage">
                        <li>
                            <asp:Label runat="server" ID="lblErrorMessage"></asp:Label></li>
                    </ul>    
                    <div style="width: 100%; height: 45px; float: inherit;">
                        <div style="width: 125px; float: left;">
                            <label>
                                Código</label>
                        </div>
                        <div align="left" style="width: 70%; float: left;">
                            <asp:TextBox ID="txtCodigo" runat="server" Width="50px" Enabled="false"></asp:TextBox>                            
                        </div>
                    </div>                
                    <div style="width: 100%; height: 45px; float: inherit;">
                        <div style="width: 125px; float: left;">
                            <label>
                                Descripci&oacute;n</label>
                        </div>
                        <div align="left" style="width: 70%; float: left;">
                            <asp:TextBox ID="txtDescripcion" name="txtNombre" runat="server" Width="300px"></asp:TextBox>
                            <asp:RequiredFieldValidator runat="server" ID="reqDescripcion" ControlToValidate="txtDescripcion" ValidationGroup="EstiloFormValitationGroup" />
                        </div>
                    </div>
                    <div style="width: 100%; height: 45px; float: inherit;">
                        <div style="width: 125px; float: left;">
                            <label>
                                Cliente</label>
                        </div>
                        <div align="left" style="width: 70%; float: left;">
                            <emporium:ClienteSearch ID="clienteSearch" runat="server" ValidationGroup ="EstiloFormValitationGroup"/>                            
                        </div>
                    </div>
                    <div style="width: 100%; height: 45px; float: inherit;">
                        <div style="width: 125px; float: left;">
                            <label>
                                Temporada</label>
                        </div>
                        <div align="left" style="width: 70%; float: left;">
                             <emporium:TemporadaSearch ID="temporadaSearch" runat="server" ValidationGroup ="EstiloFormValitationGroup"/>
                        </div>
                    </div>
                    <div style="width: 100%; height: 45px; float: inherit;">
                        <div style="width: 125px; float: left;">
                            <label>
                                Tipo Prenda</label>
                        </div>
                        <div align="left" style="width: 70%; float: left;">
                            <emporium:TipoPrendaSearch ID="tipoPrendaSearch" runat="server" ValidationGroup ="EstiloFormValitationGroup"/>
                        </div>
                    </div>
                     <div style="width: 100%; height: 45px; float: inherit;">
                        <div style="width: 125px; float: left;">
                            <label>
                                Grupo Talla</label>
                        </div>
                        <div align="left" style="width: 70%; float: left;">
                            <emporium:GrupoTallaSearch ID="grupoTallaSearch" runat="server" ValidationGroup ="EstiloFormValitationGroup"/>
                        </div>
                    </div>
                    <div style="width: 100%; height: 45px; float: inherit;">
                        <div style="width: 125px; float: left;">
                            <label>
                                Estilo Cliente</label>
                        </div>
                        <div align="left" style="width: 70%; float: left;">
                            <asp:TextBox ID="txtEstiloCliente" name="txtNombre" runat="server" Width="300px"></asp:TextBox>
                        </div>
                    </div>
                    <div style="width: 100%; height: 45px; float: inherit;">
                        <div style="width: 125px; float: left;">
                            <label>
                                Fecha</label>
                        </div>
                        <div align="left" style="width: 70%; float: left;">
                            <asp:TextBox ID="txtFecha" name="txtNombre" runat="server" Width="80px" Enabled="false"></asp:TextBox>
                        </div>
                    </div>
                </fieldset>

				<fieldset class="grey-bg no-margin">
				<br />
						<asp:LinkButton ID="btnGrabar" runat="server" CssClass="button red" Text="Grabar" OnClick="btnGrabar_Click" ValidationGroup="EstiloFormValitationGroup" ></asp:LinkButton>
                        <asp:LinkButton ID="btnAtras" runat="server" CssClass="button red" Text="Atrás" OnClick="btnAtras_Click" CausesValidation="false"></asp:LinkButton>
				</fieldset>
                </div>
                 </ContentTemplate>
                </asp:UpdatePanel>
			</form>
			</div>       
	</section>
	</article>
</asp:Content>
